#coding:utf-8

work={}

one_value = (1,)
one_key = 1
work[str(one_key)] = one_value

two_key = 2
two_value = []
two_value.append(1)
two_value.append(2)
work[str(two_key)] = two_value

three_key = 3
three_value = []
three_value.append(1)
three_value.append(2)
three_value.append(3)
work[str(three_key)] = three_value


four_key = 4
four_value = []
four_value.append(1)
four_value.append(2)
four_value.append(3)
four_value.append(4)
work[str(four_key)] = four_value

temp_five = [1,2,3,4,5]
five_key = 5
five_value = []
five_value.extend(temp_five)
work[str(five_key)] = five_value

temp_six = [1,2,3,4,5,6]
six_key = 6
six_value = []
six_value.extend(temp_six)
work[str(six_key)] = six_value

temp_seven = [1,2,3,4,5,6,7]
seven_key = 7
seven_value = []
seven_value.extend(temp_seven)
work[str(seven_key)] = seven_value

temp_eight = [1,2,3,4,5,6,7,8]
eight_key = 8
eight_value = []
eight_value.extend(temp_seven)
work[str(eight_key)] = eight_value

temp_nine = [1,2,3,4,5,6,7,8,9]
nine_key = 9
nine_value = []
nine_value.extend(temp_nine)
work[str(nine_key)] = nine_value


_keys = work.keys()
keys = list(_keys)


one = keys[0]
one_value = work.pop(one)
print(one,one_value)
one_key = int(one)
print('{} * {} = {}'.format(one_key,one_value[0],one_key*one_value[0]) )

two = keys[1]
two_value = work.pop(two)
print('{} * {} = {}'.format(two,two_value[0],int(two)*two_value[0]),end=' ')
print('{} * {} = {}'.format(two,two_value[1],int(two)*two_value[1]))

three = keys[2]
three_value = work.pop(three)
print('{} * {} = {}'.format(three,three_value[0],int(three)*three_value[0]),end=' ')
print('{} * {} = {}'.format(three,three_value[1],int(three)*three_value[1]),end=' ')
print('{} * {} = {}'.format(three,three_value[2],int(three)*three_value[2]))

four = keys[3]
four_value = work.pop(four)
print('{} * {} = {}'.format(four,four_value[0],int(four)*four_value[0]),end=' ')
print('{} * {} = {}'.format(four,four_value[1],int(four)*four_value[1]),end=' ')
print('{} * {} = {}'.format(four,four_value[2],int(four)*four_value[2]),end=' ')
print('{} * {} = {}'.format(four,four_value[3],int(four)*four_value[3]))

five = keys[4]
five_value = work.pop(five)
print('%s * %s = %s'%(five,five_value[0],int(five)*five_value[0]),end=' ')
print('%s * %s = %s'%(five,five_value[1],int(five)*five_value[1]),end=' ')
print('%s * %s = %s'%(five,five_value[2],int(five)*five_value[2]),end=' ')
print('%s * %s = %s'%(five,five_value[3],int(five)*five_value[3]),end=' ')
print('%s * %s = %s'%(five,five_value[4],int(five)*five_value[-1]),)

six = keys[5]
six_value = work.pop(six)
print('%s * %s = %s'%(six,six_value[0],int(six)*six_value[0]),end=' ')
print('%s * %s = %s'%(six,six_value[1],int(six)*six_value[1]),end=' ')
print('%s * %s = %s'%(six,six_value[2],int(six)*six_value[2]),end=' ')
print('%s * %s = %s'%(six,six_value[2],int(six)*six_value[3]),end=' ')
print('%s * %s = %s'%(six,six_value[4],int(six)*six_value[4]),end=' ')
print('%s * %s = %s'%(six,six_value[5],int(six)*six_value[5]),)
